package model

import "gorm.io/gorm"

type Course struct {
	gorm.Model
	CourseName    string  `gorm:"type:varchar(100);not null;comment:课程名称"`
	CourseInfo    string  `gorm:"type:varchar(100);comment:课程简介"`
	CourseContent string  `gorm:"type:varchar(100);comment:课程内容"`
	CoursePrice   float32 `gorm:"type:decimal(10,2);not null;comment:课程价格"`
	Status        int     `gorm:"type:tinyint(10);not null;comment:状态 1-上架 2-下架"`
}
